//
//  ViewController.m
//  JKDateFormatter
//
//  Created by 王冲 on 2018/11/1.
//  Copyright © 2018年 JK科技有限公司. All rights reserved.
//

#import "ViewController.h"
#import "JKNSDate.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // 1540658430  : 2018/10/28 0:40:30
    
    NSString *string = [JKNSDate getDate:@"1541383200"];
    
    NSLog(@"1541383200转化为时间戳是：%@",string);
    
    [[JKNSDate new]jkTimestampFromString:string format:@"YYYY年MM月" withJKTimestampBlock:^(NSString * _Nonnull timestamp1, NSString * _Nonnull timestamp2) {
        
        NSLog(@"月初的时间戳 = %@ 月末24:00的时间戳 = %@",timestamp1,timestamp2);
        
    }];
    
}


@end
